{%if is_login then%}
<p class="navbar-text pull-right">
<a href="{{helper:url('admin/index/index')}}">您好 {{user_name}}</a> <a href="{{helper:url('admin/index/logout')}}">退出</a>
</p>
{%else%}
<p class="navbar-text pull-right">
<a href="{{helper:url('admin/index/index')}}">登录</a>
</p>
{%end%}
<ul class="nav">
<li class="active"><a href="/">首页</a></li>
<li><a href="{{helper:url('admin/index/index')}}">管理后台</a></li>
{%if is_login then%}
<li><a href="{{helper:url('admin/articles/create')}}">添加文章</a></li>
{%end%}
<li >
    <div class="input-group" >
        <form name="sdf" method="GET" action="{{helper:url('index/search')}}" style="margin:0px">
        <input type="text" class="form-control" name="word" value="{{word}}" placeholder="Search for..." style="margin-top:5px"/>
        <span class="input-group-btn">
            <button class="btn btn-default" type="submit" style="margin-top: -5px;">搜索</button>
        </span>
        </form>
    </div>
</li>
</ul>